<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:body>
        <ui:composition template="/templates/template.xhtml">
            <ui:define name="content">     
                
                <script>                   
                        play_win_sound();
                </script>
                
                <h:form style="width: 450px; margin:0 auto;">
                    <div id="result_headline">                    
                    <h:outputLabel value="Gratulerer!" rendered="#{tasks.ifUnlocked}"/>
                    <h:outputLabel value="Beklager, ikke nok poeng!" rendered="#{not tasks.ifUnlocked}"/>
                    </div>
                    
                    <div id="result_text">
                        <h:outputLabel value=" Du fikk "/>#{tasks.resultPoints}  poeng!
                    </div>
                    
                    <h:graphicImage id="result_image" style="border:0px;" alt="enter" url="#{tasks.resultImageUrl}"> </h:graphicImage>
                    
                    <div class="custom_button">
                        <h:commandLink style="margin: 5px auto;" styleClass="button" value="Til romvalg"  action="../protected/chooseGame.xhtml"></h:commandLink>
                    </div>
                    
                </h:form>
                <br/><br/>

            </ui:define>
        </ui:composition>
    </h:body>
</html>
